package com.chenshu.controller;

import com.chenshu.domain.User;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;
import org.springframework.web.bind.annotation.RestController;

/**
 * Created with IntelliJ IDEA
 * Description
 * User：chenshu
 * Date：2024-04-17
 * Time：09:40
 */

@RestController
@RequestMapping("/test")
public class UserController {
    @RequestMapping(value = "/add",method = RequestMethod.GET)
    public String adduser(User user) {
        System.out.println(user);
        return user.toString();
    }
}
